# DarkCube X-8 Log Writer Class

import os
import time

class logwriter_version:
    def __init__(self):
        return 1.0

class writer:
    def __init__(self,strFn):
        self.strFname = strFn
        self.write('LogWriter started successfully','greets')
    def status(self,strLogMsg):
        self.write(strLogMsg,'status')
    def notice(self,strLogMsg):
        self.write(strLogMsg,'notice')
    def warning(self,strLogMsg):
        self.write(strLogMsg,'warning')
    def error(self,strLogMsg):
        self.write(strLogMsg,'error')
    def write(self,strLogMsg,strLogType):
        print '[%s] "%s" %s : %s' % (self.ctime(),self.strFname,strLogType,strLogMsg)
    def ctime(self):
        return time.strftime('%H:%M:%S')

if __name__=='__main__':
     print ' LogWriter cannot run individually '
